using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class Per_ThresholdMap : EntityTypeConfiguration<Per_Threshold>
    {
        public Per_ThresholdMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.Examtype)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("Per_Threshold");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.Examtype).HasColumnName("Examtype");
            this.Property(t => t.Value).HasColumnName("Value");
            this.Property(t => t.Min).HasColumnName("Min");
            this.Property(t => t.Max).HasColumnName("Max");
        }
    }
}
